package cn.initcap.concurrency.classloader;

/**
 * @author initcap
 * @date Created in 2018/7/3 PM4:39.
 */
public class ClassInitSeqPrint {

    public static ClassInitSeqPrint test1 = new ClassInitSeqPrint();
    public static ClassInitSeqPrint test2 = new ClassInitSeqPrint();

    static {
        System.out.println("静态构造块1");
    }

    static {
        System.out.println("静态构造块2");
    }

    {
        System.out.println("构造块1");
    }

    {
        System.out.println("构造块2");
    }

    public ClassInitSeqPrint() {
        System.out.println("构造体");
    }

    public static void main(String[] args) {
        new ClassInitSeqPrint();
    }
}
